import routerPlaceholder from '../../views/layout/router-placeholder.vue'

let routers = {
  path: 'dataSource',
  name: 'dataSource',
  component: routerPlaceholder,
  redirect: {
    name: "dataSourceTest"
  },
  children: [{
    path: 'test',
    name: 'dataSourceTest',
    component: () => import('@/views/dataSource/test/index.vue'),
    meta: {
      activeMenu: 'dataSourceTest',
      title: '测试',
      icon: 'dataSourceTest',
      affix: true
    }
  },{
    path: '3dtiles',
    name: '3dtiles',
    component: () => import('@/views/dataSource/3dtiles/index.vue'),
    meta: {
      activeMenu: '3dtiles',
      title: '3dtiles',
      icon: '3dtiles',
      affix: true
    }
  },{
    path: 'timeDynPointCloud',
    name: 'timeDynPointCloud',
    component: () => import('@/views/dataSource/timeDynPointCloud/index.vue'),
    meta: {
      activeMenu: 'timeDynPointCloud',
      title: '动态点云',
      icon: 'timeDynPointCloud',
      affix: true
    }
  },{
    path: 'formats',
    name: 'formats',
    component: () => import('@/views/dataSource/formats/index.vue'),
    meta: {
      activeMenu: 'formats',
      title: '格式',
      icon: 'formats',
      affix: true
    }
  },{
    path: 'styPointCloud',
    name: 'styPointCloud',
    component: () => import('@/views/dataSource/styPointCloud/index.vue'),
    meta: {
      activeMenu: 'styPointCloud',
      title: '点云渲染',
      icon: 'styPointCloud',
      affix: true
    }
  },{
    path: 'pointCloud1',
    name: 'pointCloud1',
    component: () => import('@/views/dataSource/pointCloud1/index.vue'),
    meta: {
      activeMenu: 'pointCloud1',
      title: '点云1',
      icon: 'pointCloud1',
      affix: true
    }
  },{
    path: 'OsmBuildings',
    name: 'OsmBuildings',
    component: () => import('@/views/dataSource/OsmBuildings/index.vue'),
    meta: {
      activeMenu: 'OsmBuildings',
      title: 'OsmBuildings',
      icon: 'OsmBuildings',
      affix: true
    }
  },{
    path: 'tilesetHeight',
    name: 'tilesetHeight',
    component: () => import('@/views/dataSource/tilesetHeight/index.vue'),
    meta: {
      activeMenu: 'tilesetHeight',
      title: '3d tiles height',
      icon: 'tilesetHeight',
      affix: true
    }
  }]
}

export default routers
